package cn.ekuma.epos.subject;

import java.util.Properties;

import cn.ekuma.epos.datalogic.I_DataLogicCustomers;
import cn.ekuma.epos.datalogic.I_DataLogicSales;

import com.openbravo.bean.erp.subject.SubjectCustomer;
import com.openbravo.data.basic.BasicException;
import com.openbravo.data.user.DirtyManager;

import com.openbravo.pos.base.AppLocal;
import com.openbravo.pos.panels.AbstractRefCustomerEditor;

public class SubjectCustomerEditor extends
		AbstractRefCustomerEditor<SubjectCustomer> {


	public SubjectCustomerEditor(I_DataLogicSales app,
			I_DataLogicCustomers dlCustomers, DirtyManager dirty) {
		super(app, dlCustomers, dirty);
	}

	@Override
	public String getTabName() {
		 return AppLocal.getIntString("label.SubjectCustomer");
	}

	@Override
	public SubjectCustomer createNew(Properties prop) {	
		SubjectCustomer obj=new SubjectCustomer();
		obj.setSubjectId(this.parentNode.getParentKey().getKey());
		return obj;
	}

	@Override
	public void rebuild(SubjectCustomer obj) throws BasicException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Class getEditClass() {
		return SubjectCustomer.class;
	}

}
